package com.wonder.delta;

import org.jline.utils.AttributedString;
import org.jline.utils.AttributedStyle;
import org.springframework.shell.jline.PromptProvider;
import org.springframework.stereotype.Component;

/**
 * @Name: CustomPromptProvider
 * @Description: java类作用描述
 * @Author: yn
 * @CreateDate: 2023/6/28 11:00
 * @Remark: 特殊说明
 * @Version: 1.0
 */
@Component
public class CustomPromptProvider implements PromptProvider {

	@Override
	public AttributedString getPrompt() {
		return new AttributedString("wonder:>",
				AttributedStyle.DEFAULT.foreground(AttributedStyle.YELLOW));
	}

}
